//Source file: D:\\test\\com\\ce\\pms\\house\\model\\CompanyDomain.java

package com.ce.pms.house.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.*;

import com.ce.pms.common.model.SysInfo;
import com.ce.pms.common.model.SysrefcodeDO;
import com.sitechasia.webx.core.model.IDomainObject;


/**
 * 实体名称:物业公司
 * 关联表:HM_COMPANY
 */
@Entity
@Table(name = "HM_COMPANY")
public class CompanyDomain implements IDomainObject
{

   /**
    * 公司主键
    */
   @Id @GeneratedValue @Column(name = "COMPANY_ID")
   private Long keyword;

   /**
    * 公司名称
    */
   @Column(name = "NAME",length = 36)
   private String name;

   /**
    * 法人
    */
   @Column(name = "CORPORATION",length = 36)
   private String corporation;

   /**
    * 创建日期
    */
   @Column(name = "ESTABLISH_DATE")
   @Temporal(TemporalType.DATE)
   private Date establishDate;

   /**
    * 资质
    */
   @ManyToOne(cascade={})
   @JoinColumn(name="SYS_REF_ID")
   private SysrefcodeDO qualify;

   /**
    * 管理面积
    */
   @Column(name = "ACREAGE",precision=12 ,scale=2)
   private Double acreage;

   /**
    * 公司地址
    */
   @Column(name = "ADDRESS",length = 100)
   private String address;

   /**
    * 系统信息
    */
   @Embedded
   private SysInfo sysInfo;


   public CompanyDomain()
   {

   }

   /**
    *
    * @param name 公司名称
    * @param sysInfo 系统信息
    */
	public CompanyDomain(String name, SysInfo sysInfo) {
		super();
		this.name = name;
		this.sysInfo = sysInfo;
	}

/**
 * @return the acreage
 */
public Double getAcreage() {
	return acreage;
}

/**
 * @param acreage the acreage to set
 */
public void setAcreage(Double acreage) {
	this.acreage = acreage;
}

/**
 * @return the address
 */
public String getAddress() {
	return address;
}

/**
 * @param address the address to set
 */
public void setAddress(String address) {
	this.address = address;
}

/**
 * @return the corporation
 */
public String getCorporation() {
	return corporation;
}

/**
 * @param corporation the corporation to set
 */
public void setCorporation(String corporation) {
	this.corporation = corporation;
}

/**
 * @return the establishDate
 */
public Date getEstablishDate() {
	return establishDate;
}

/**
 * @param establishDate the establishDate to set
 */
public void setEstablishDate(Date establishDate) {
	this.establishDate = establishDate;
}

/**
 * @return the keyword
 */
public Long getKeyword() {
	return keyword;
}

/**
 * @param keyword the keyword to set
 */
public void setKeyword(Long keyword) {
	this.keyword = keyword;
}

/**
 * @return the name
 */
public String getName() {
	return name;
}

/**
 * @param name the name to set
 */
public void setName(String name) {
	this.name = name;
}

/**
 * @return the qualify
 */
public SysrefcodeDO getQualify() {
	return qualify;
}

/**
 * @param qualify the qualify to set
 */
public void setQualify(SysrefcodeDO qualify) {
	this.qualify = qualify;
}

/**
 * @return the sysInfo
 */
public SysInfo getSysInfo() {
	return sysInfo;
}

/**
 * @param sysInfo the sysInfo to set
 */
public void setSysInfo(SysInfo sysInfo) {
	this.sysInfo = sysInfo;
}


}
